home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1297 / AMOSLIST / text0141.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  1.3 KB  |  36 lines

  1.  
  2. To the one known as Jens,
  3. > Hello, Sample-trouble online :)
  4. > I'm in a bunch of trouble with a sample-loader I'm trying to build into
  5. > a program. I want it to load several different formats.. BUT:
  6. > 1) How do I get the sample-rate of an IFF-8SVX file ??
  7.  
  8. Hehe, I wrote this one last week.  Scan the file for VHDR, and then
  9. add 20(ish) to it, and do a deek.  If you find it jibberish, do a -1.
  10.  
  11. > 2) How do I convert a WAV (PC) sample to a raw one.. (Or just the file-
  12. >    format :)..
  13.  
  14. Err, use an external proggie, there are loads.
  15.  
  16. > 3) The file-format if an AIFF file ??
  17.  
  18. No idea.
  19.  
  20. > 4) If I want to scale a 8-bit sample (to another rate), is it as simple
  21. >    as scaling GFX ??, is it just a matter of taking out, say every 3rd
  22. >    byte or is there some nasty trick that needs to be done ??
  23. >    (calc. average of two bytes to make it even better ??)
  24.  
  25. Try it, you'll be suprised.  
  26.  
  27.  
  28.  _   _   _        _     _   _     |  Ferengi Rule of Acquisition #27
  29. |_> |_| |_| |\ | |_ |  | | /   |  |  
  30. |_> | \ | | | \| |_ |_ |_| \_  .  |  There's nothing more dangerous than an
  31.                                   |  honest businessman.
  32.                     --------------+---------------
  33.                      http://www.mirex.demon.co.uk
  34.                       Member: IAPA & Team *AMOS*
  35.  
  36.